package com.ychug.service.cms.entity;


import com.ychug.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 内容表 cms_news
 * 
 * @author mcpcms
 * @date 2019-04-30
 */
public class CmsNewsEntity extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 内容编号 */
	private Integer contentId;
	/** 内容编码 */
	private String contentCode;
	/** 站点编号 */
	private Integer siteId;
	/** 栏目ID */
	private Integer catId;

	/** 栏目名称 */
	private String catName;

	/** 发布日期 */
	private Date publishDate;
	/** 关闭日期 */
	private Date offDate;
	/** 优先级 */
	private Integer priority;
	/** 是否包含图片 */
	private String isWithImage;
	/** 浏览总数 */
	private Integer views;
	/** 评论总数 */
	private Integer comments;
	/** 顶 */
	private Integer diggs;
	/** 得分 */
	private Integer score;
	/** 收藏次数 */
	private Integer favorites;
	/** 状态(0:发起者,1-9:审核中,A:已发布,B:草稿,C:投稿,D:退稿,E:采集,F:待发布,G:已过期,X:回收站,Z:归档) */
	private String checkStatus;
	/** HTML状态(0:未开启,1:待生成,2:待更新,3:已生成) */
	private String htmlStatus;
	/** 是否推荐0、否1、是 */
	private Integer isRecommend;
	/** 是否置顶0、否1、是 */
	private Integer isTop;
	/** 是否首页显示0、否1、是 */
	private Integer isShow;
	/** 状态:1、删除 0、正常 2、禁止 */
	private Integer status;
	/** 创建者 */
	private String createBy;
	/** 创建时间 */
	private Date createDate;
	/** 更新者 */
	private String updateBy;
	/** 更新时间 */
	private Date updateDate;
	/** 备注 */
	private String remark;

	public void setContentId(Integer contentId) 
	{
		this.contentId = contentId;
	}

	public Integer getContentId() 
	{
		return contentId;
	}
	public void setContentCode(String contentCode) 
	{
		this.contentCode = contentCode;
	}

	public String getContentCode() 
	{
		return contentCode;
	}
	public void setSiteId(Integer siteId) 
	{
		this.siteId = siteId;
	}

	public Integer getSiteId() 
	{
		return siteId;
	}
	public void setCatId(Integer catId) 
	{
		this.catId = catId;
	}

	public Integer getCatId() 
	{
		return catId;
	}
	public void setPublishDate(Date publishDate) 
	{
		this.publishDate = publishDate;
	}

	public String getCatName() {
		return catName;
	}

	public void setCatName(String catName) {
		this.catName = catName;
	}

	public Date getPublishDate()
	{
		return publishDate;
	}
	public void setOffDate(Date offDate) 
	{
		this.offDate = offDate;
	}

	public Date getOffDate() 
	{
		return offDate;
	}
	public void setPriority(Integer priority) 
	{
		this.priority = priority;
	}

	public Integer getPriority() 
	{
		return priority;
	}
	public void setIsWithImage(String isWithImage) 
	{
		this.isWithImage = isWithImage;
	}

	public String getIsWithImage() 
	{
		return isWithImage;
	}
	public void setViews(Integer views) 
	{
		this.views = views;
	}

	public Integer getViews() 
	{
		return views;
	}
	public void setComments(Integer comments) 
	{
		this.comments = comments;
	}

	public Integer getComments() 
	{
		return comments;
	}
	public void setDiggs(Integer diggs) 
	{
		this.diggs = diggs;
	}

	public Integer getDiggs() 
	{
		return diggs;
	}
	public void setScore(Integer score) 
	{
		this.score = score;
	}

	public Integer getScore() 
	{
		return score;
	}
	public void setFavorites(Integer favorites) 
	{
		this.favorites = favorites;
	}

	public Integer getFavorites() 
	{
		return favorites;
	}
	public void setCheckStatus(String checkStatus) 
	{
		this.checkStatus = checkStatus;
	}

	public String getCheckStatus() 
	{
		return checkStatus;
	}
	public void setHtmlStatus(String htmlStatus) 
	{
		this.htmlStatus = htmlStatus;
	}

	public String getHtmlStatus() 
	{
		return htmlStatus;
	}
	public void setIsRecommend(Integer isRecommend) 
	{
		this.isRecommend = isRecommend;
	}

	public Integer getIsRecommend() 
	{
		return isRecommend;
	}
	public void setIsTop(Integer isTop) 
	{
		this.isTop = isTop;
	}

	public Integer getIsTop() 
	{
		return isTop;
	}
	public void setIsShow(Integer isShow) 
	{
		this.isShow = isShow;
	}

	public Integer getIsShow() 
	{
		return isShow;
	}
	public void setStatus(Integer status) 
	{
		this.status = status;
	}

	public Integer getStatus() 
	{
		return status;
	}
	public void setCreateBy(String createBy) 
	{
		this.createBy = createBy;
	}

	public String getCreateBy() 
	{
		return createBy;
	}
	public void setCreateDate(Date createDate) 
	{
		this.createDate = createDate;
	}

	public Date getCreateDate() 
	{
		return createDate;
	}
	public void setUpdateBy(String updateBy) 
	{
		this.updateBy = updateBy;
	}

	public String getUpdateBy() 
	{
		return updateBy;
	}
	public void setUpdateDate(Date updateDate) 
	{
		this.updateDate = updateDate;
	}

	public Date getUpdateDate() 
	{
		return updateDate;
	}
	public void setRemark(String remark) 
	{
		this.remark = remark;
	}

	public String getRemark() 
	{
		return remark;
	}

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("contentId", getContentId())
            .append("contentCode", getContentCode())
            .append("siteId", getSiteId())
            .append("catId", getCatId())
            .append("publishDate", getPublishDate())
            .append("offDate", getOffDate())
            .append("priority", getPriority())
            .append("isWithImage", getIsWithImage())
            .append("views", getViews())
            .append("comments", getComments())
            .append("diggs", getDiggs())
            .append("score", getScore())
            .append("favorites", getFavorites())
            .append("checkStatus", getCheckStatus())
            .append("htmlStatus", getHtmlStatus())
            .append("isRecommend", getIsRecommend())
            .append("isTop", getIsTop())
            .append("isShow", getIsShow())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createDate", getCreateDate())
            .append("updateBy", getUpdateBy())
            .append("updateDate", getUpdateDate())
            .append("remark", getRemark())
            .toString();
    }
}
